﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductDetailForm.ascx.cs"
    Inherits="SalesManagement.Controls.List.ProductDetailForm" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winDetails" runat="server" Title="Khách hàng - NCC" Icon="User" Width="600"
    Height="400" Modal="true" Hidden="true" Layout="FormLayout" Padding="5">
    <Items>
        <ext:Panel ID="Panel0" runat="server" Frame="true" Height="600" Layout="ColumnLayout">
            <Defaults>
                <ext:Parameter Name="Anchor" Value="99%">
                </ext:Parameter>
            </Defaults>
            <Items>
                <ext:Panel ID="Panel1" runat="server" ColumnWidth="0.5" Layout="FormLayout" LabelWidth="120">
                    <Defaults>
                        <ext:Parameter Name="Anchor" Value="99%">
                        </ext:Parameter>
                    </Defaults>
                    <Items>
                        <ext:Panel ID="Panel3" runat="server" Title="Hàng hóa" AutoHeight="true" FormGroup="true"
                            Layout="AnchorLayout">
                            <Defaults>
                                <ext:Parameter Name="Anchor" Value="99%">
                                </ext:Parameter>
                            </Defaults>
                            <Items>
                                <ext:TextField runat="server" ID="txtVoucherNo" FieldLabel="Mã hàng" AnchorHorizontal="70%">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField4" FieldLabel="Tên hàng">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField5" FieldLabel="Tên viết tắt">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField6" FieldLabel="Đơn vị tính">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField7" FieldLabel="Nhóm hàng">
                                </ext:TextField>
                                <ext:RadioGroup ID="rbGroup" runat="server">
                                    <Items>
                                        <ext:Radio ID="rbPro" runat="server" BoxLabel="Hàng hóa" />
                                        <ext:Radio ID="rbSer" runat="server" BoxLabel="Dịch vụ" />
                                    </Items>
                                </ext:RadioGroup>
                                <ext:CheckboxGroup ID="ckGroup" runat="server">
                                    <Items>
                                        <ext:Checkbox ID="ckNL" runat="server" BoxLabel="Nguyên liệu" />
                                        <ext:Checkbox ID="ckTP" runat="server" BoxLabel="Thành phẩm" />
                                    </Items>
                                </ext:CheckboxGroup>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel4" runat="server" Title="Thông tin khác" AutoHeight="true" FormGroup="true"
                            Layout="AnchorLayout">
                            <Defaults>
                                <ext:Parameter Name="Anchor" Value="99%">
                                </ext:Parameter>
                            </Defaults>
                            <Items>
                                <ext:TextField runat="server" ID="TextField1" FieldLabel="Thuế VAT" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField8" FieldLabel="Màu sắc" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField9" FieldLabel="Thời hạn sử dụng" StyleSpec="text-align:right">
                                </ext:TextField>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:Panel>
                <ext:Panel ID="Panel2" runat="server" ColumnWidth="0.4" Layout="FormLayout" LabelWidth="120">
                    <Defaults>
                        <ext:Parameter Name="Anchor" Value="99%">
                        </ext:Parameter>
                    </Defaults>
                    <Items>
                        <ext:Panel ID="Panel5" runat="server" Title="Thông tin khác" AutoHeight="true" FormGroup="true"
                            Layout="AnchorLayout">
                            <Defaults>
                                <ext:Parameter Name="Anchor" Value="99%">
                                </ext:Parameter>
                            </Defaults>
                            <Items>
                                <ext:TextField runat="server" ID="TextField2" FieldLabel="Đơn giá mua" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField10" FieldLabel="SL tồn tối đa" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField11" FieldLabel="Thuế nhập khẩu" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:ComboBox ID="ComboBox1" runat="server" FieldLabel="Nhà cung cấp" Editable="false"
                                    DataIndex="Title" />
                                <ext:TextArea ID="txtNote" runat="server" FieldLabel="Ghi chú" />
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel6" runat="server" Title="Thông tin khác" AutoHeight="true" FormGroup="true"
                            Layout="AnchorLayout">
                            <Defaults>
                                <ext:Parameter Name="Anchor" Value="99%">
                                </ext:Parameter>
                            </Defaults>
                            <Items>
                                <ext:TextField runat="server" ID="TextField3" FieldLabel="Giá gốc" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField12" FieldLabel="SL tồn tối thiểu" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField13" FieldLabel="Thuế nhập khẩu" StyleSpec="text-align:right">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField14" FieldLabel="Chiết khấu" StyleSpec="text-align:right">
                                </ext:TextField>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Panel>
    </Items>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Save" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click" />
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnCancel" runat="server" Text="Cancel" Icon="Cancel">
            <Listeners>
                <Click Handler="#{winDetails}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
